#! /bin/bash

MOD="codec"

EXIST=`lsmod | grep $MOD`

if [ -n "$EXIST" ]; then
    echo "remove $MOD ..."
    rmmod $MOD
fi

echo "install $MODE ..."
insmod $MOD.ko
